import { createRouter, createWebHistory } from 'vue-router';
import Home from '../views/Home.vue';
import Login from '../views/Login.vue';
import ScoreQuery from '../views/ScoreQuery.vue';

const routes = [
  {
    path: '/',
    name: 'Home',
    component: Home
  },
  {
    path: '/view/login.html', // 确保路径和需求一致
    name: 'Login',
    component: Login
  },
  {
    path: '/score',
    name: 'ScoreQuery',
    component: () => import('../views/ScoreQuery.vue')
  },
];

const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes
});

export default router;